/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  router.get('/getData', controller.order.getData);
  router.post('/addDataItem', controller.order.addDataItem);
  router.delete('/delItem', controller.order.delItem);
  router.put('/editItem', controller.order.editItem);
};
